Gain

There are many (probably too many) ways to control gain.

Ultimately, within the driver,  there are only two gain factors, one for each channel, so care should be taken to make sure that the  product  of all the gain factors does not exceed 4.

1) per soundfile, in the Soundfile Window

2) per note in the Playnote Window,  using either the amp(), ampl(), ampr(), or gain= arguments.

3) per track in the Track Window, for left and right channels individually.

4) for all or a subset of the tracks, over a specified period of time, using the trackgain(), command in the Playnote Window.

5) For the two output channels in the Tracks Window.

All these gains are multiplied by each other with the exception of the gain= argument in the playnote() command, which overrides the gain argument in the Soundfile Window.  When a gain specification only applies to one channel, however, it is of course only multiplied by other gain factors which address that channel.